import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '名称',
    dataIndex: 'name',
  },
  {
    title: '批量',
    dataIndex: 'isBatch',
    customRender: ({ text }) => {
      return text == 1 ? '是' : '否';
    },
  },
  {
    title: '默认',
    dataIndex: 'isDefault',
    slots: {
      customRender: 'isDefault',
    },
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'file',
    label: '选择文件',
    required: true,
    component: 'Input',
    slot: 'file',
  },
];
